<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ItemComprovanteEntregaEditDlg" widgetVar="ItemComprovanteEntregaEditDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.EditItemComprovanteEntregaTitle}">
            <h:form id="ItemComprovanteEntregaEditForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{itemComprovanteEntregaController.selected != null}">
                        <p:outputLabel value="#{bundle.EditItemComprovanteEntregaLabel_qtFaturar}" for="qtFaturar" />
                        <p:inputText id="qtFaturar" value="#{itemComprovanteEntregaController.selected.qtFaturar}" title="#{bundle.EditItemComprovanteEntregaTitle_qtFaturar}" required="true" requiredMessage="#{bundle.EditItemComprovanteEntregaRequiredMessage_qtFaturar}"/>
                        <p:outputLabel value="#{bundle.EditItemComprovanteEntregaLabel_vlFaturar}" for="vlFaturar" />
                        <p:inputText id="vlFaturar" value="#{itemComprovanteEntregaController.selected.vlFaturar}" title="#{bundle.EditItemComprovanteEntregaTitle_vlFaturar}" required="true" requiredMessage="#{bundle.EditItemComprovanteEntregaRequiredMessage_vlFaturar}"/>
                        <p:outputLabel value="#{bundle.EditItemComprovanteEntregaLabel_comprovanteEntrega}" for="comprovanteEntrega" />
                        <p:selectOneMenu id="comprovanteEntrega" value="#{itemComprovanteEntregaController.selected.comprovanteEntrega}" required="true" requiredMessage="#{bundle.EditItemComprovanteEntregaRequiredMessage_comprovanteEntrega}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{comprovanteEntregaController.itemsAvailableSelectOne}"
                                           var="comprovanteEntregaItem"
                                           itemValue="#{comprovanteEntregaItem}"/>
                        </p:selectOneMenu>
                        <p:outputLabel value="#{bundle.EditItemComprovanteEntregaLabel_itemContrato}" for="itemContrato" />
                        <p:selectOneMenu id="itemContrato" value="#{itemComprovanteEntregaController.selected.itemContrato}" required="true" requiredMessage="#{bundle.EditItemComprovanteEntregaRequiredMessage_itemContrato}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{itemContratoController.itemsAvailableSelectOne}"
                                           var="itemContratoItem"
                                           itemValue="#{itemContratoItem}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{itemComprovanteEntregaController.update}" value="#{bundle.Save}" update="display,:ItemComprovanteEntregaListForm:datalist,:growl" oncomplete="handleSubmit(args, 'ItemComprovanteEntregaEditDialog');"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="ItemComprovanteEntregaEditDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
